1 Maintenance
1.1 Start R session and Rstudio
You might want to continue using project from yesterday.
1.2 Load the libraries
set.seed(1234)
if (!require("tidyverse")) install.packages("tidyverse"); library("tidyverse")## Loading required package: tidyverse
## -- Attaching packages ----------------------------------------------------- tidyverse 1.2.1 --
## v ggplot2 3.1.0 v purrr 0.3.0
## v tibble 2.0.1 v dplyr 0.7.8
## v tidyr 0.8.2 v stringr 1.4.0
## v readr 1.3.1 v forcats 0.3.0
## -- Conflicts -------------------------------------------------------- tidyverse_conflicts() --
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
if (!require("sf")) install.packages("sf"); library("sf")## Loading required package: sf
## Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3
if (!require("tmap")) install.packages("tmap"); library("tmap")## Loading required package: tmap
if (!require("tmaptools")) install.packages("tmaptools"); library("tmaptools")## Loading required package: tmaptools
if (!require("sjmisc")) install.packages("sjmisc"); library("sjmisc")## Loading required package: sjmisc
##
## Attaching package: 'sjmisc'
## The following object is masked from 'package:purrr':
##
## is_empty
## The following object is masked from 'package:tidyr':
##
## replace_na
## The following object is masked from 'package:tibble':
##
## add_case
if (!require("skimr")) install.packages("skimr"); library("skimr")## Loading required package: skimr
set.seed
sjPlot